<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/header.css">
    <link rel="stylesheet" href="css/content.css">
    <link rel="stylesheet" href="css/footer.css">
    <script src="js/jquery-3.2.1.js"></script>
</head>
<body>
    <div class="header">
        <div>
            <div class="img-xiaomi">
                <img src="images/mi-logo.png" alt="">
            </div>
            <div class="xiaomishangcheng">
                <p>小米商城</p>
                <p>让每个人都能享受科技的乐趣</p>
            </div>
        </div>
    </div>
    <div class="content">
        <div>
            <div class="shu"></div>
            <div class="form">
                <ul class="nav">
                    <li class="current">扫码登录</li>                     
                    <li>账号登录</li>
                </ul>
               
                <div class="continer">
                    <div class="login">
                        <p class="phone">
                            <input type="text" placeholder="邮箱/手机号码/小米账号"/>
                        </p>
                        <p class="password">
                            <input type="password" placeholder="密码"/>
                        </p>
                        <p class="submit">
                            <input type="submit" value="登录"/>
                        </p>
                        <p class="register">
                            <span>注册小米账号</span>
                            <span>|</span>
                            <span>忘记密码?</span>
                        </p>
                        <div class="foot">
                            <p class="qita">
                                <span class="left"></span>
                                其他方式登录
                                <span class="right"></span>
                            </p>
                            <div class="icon">
                                <a href="#" ><span class="one"></span></a>
                                <a href="#"><span  class="two"></span></a>
                                <a href="#" ><span class="three"></span></a>
                                <a href="#" ><span class="four"></span></a>
                            </div>
                        </div>  
                    </div>
                    <div class="saoma">
                        <img src="images/xiaomierweima.png" alt="">
                        <p>使用<span> 小米商城APP </span>扫一扫</p>
                        <p>小米手机可打开「设置」>「小米帐号」扫码登录</p>
                    </div>
                </div>
                
                
            </div>
        </div>
    </div>
    <div class="footer">
        <div></div>
        <div>
            <p>简体&nbsp;|&nbsp; 繁体&nbsp;|&nbsp; English&nbsp;|&nbsp; 常见问题&nbsp;|&nbsp; 隐私政策</p>
            <p>小米公司版权所有-京ICP备10046444-<span></span>京公网
                安备11010802020134号-京ICP证110507号</p>
        </div>
    </div>
    <script>
        $(".nav li").click(function(){
            $(this).addClass("current").siblings().removeClass("current")
            let index = $(this).index();
            console.log(index)
            $(".continer>div").eq(index).show().siblings().hide()
        })
    </script>
</body>
</html>